package com.sunwayworld.basemodule.common.eptstorage.file.excelread.resource;

import com.sunwayworld.basemodule.common.eptstorage.file.excelread.bean.LimsExcelReadconfigBean;
import com.sunwayworld.basemodule.common.eptstorage.file.excelread.listener.SheetData;
import com.sunwayworld.basemodule.common.eptstorage.file.excelread.service.LimsExcelReadconfigService;
import com.sunwayworld.framework.log.annotation.Log;
import com.sunwayworld.framework.log.annotation.LogType;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import com.sunwayworld.framework.support.base.resource.GenericResource;
import com.sunwayworld.framework.support.choosable.resource.GenericChoosableResource;
import com.sunwayworld.framework.support.selectable.resource.GenericSelectableResource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@RequestMapping("/secure/basemodule/common/eptstorage/file/parse/excelread/excel-readconfigs")
public interface LimsExcelReadconfigResource extends GenericResource<LimsExcelReadconfigService, LimsExcelReadconfigBean, Long>, GenericChoosableResource<LimsExcelReadconfigService, LimsExcelReadconfigBean, Long>, GenericSelectableResource<LimsExcelReadconfigService, LimsExcelReadconfigBean, Long> {
    @Log(
            value = "测试解析",
            type = LogType.INSERT
    )
    @RequestMapping(
            value = {"/excel/testparse"},
            method = {RequestMethod.POST}
    )
    List<SheetData> testparse(RestJsonWrapperBean wrapper);

    @RequestMapping(value = "/selectAllList", method = RequestMethod.GET)
    List<LimsExcelReadconfigBean> selectAllList();
}
